//写所有的后台接口，做到 后台接口统一管理
import request from "@/utils/request.js";
//1.设备概览接口
export const $deviceCount = () => {
    return request.get("/device/count");
}
export const $sensorCount = ()=>{
    return request.get("/sensor/count")
}
export const $gatewayList = (params)=>{
    console.log(params)
    return request.get("/gateway/list",{params})
}
export const $deviceSensorList = ()=>{
    return request.get("/device/sensorList")
}
//群组列表
export const $groupList = (params)=>{
    return request.get("/group/list",{params})
}
//群组添加
export const $groupAdd = (data)=>{
    return request.get("/group/add",data)
}
//群组删除
export const $groupDel = (data)=>{
    return request.get("/group/del",data)
}
//群组修改
export const $groupEdit = (data)=>{
    return request.get("/group/del",data)
}